import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/',
      name: 'zy',
      component: () => import('../views/Zy.vue'),
    },
    {
      path: '/rshow',
      name: 'rshow',
      component: () => import('../views/RoomKs/Index.vue'),
    },
    {
      path: '/radd',
      name: 'radd',
      component: () => import('../views/RoomKs/Add.vue'),
    },
    {
      path: '/rupdate',
      name: 'rupdate',
      component: () => import('../views/RoomKs/Update.vue'),
    },
    {
      path: '/dshow',
      name: 'dshow',
      component: () => import('../views/Doute/Index.vue'),
    },
    {
      path: '/dadd',
      name: 'dadd',
      component: () => import('../views/Doute/Add.vue'),
    },
    {
      path: '/bshow',
      name: 'bshow',
      component: () => import('../views/Roombf/Index.vue'),
    },
    {
      path: '/badd',
      name: 'badd',
      component: () => import('../views/Roombf/Add.vue'),
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/Roombf/Login.vue'),
    },
  ],
})

export default router
